import React from 'react'
import ReactDOM from 'react-dom/client'
import './index.css'
// src里面的app.js
import App from './App'
import reportWebVitals from './reportWebVitals'

// 全局挂载
import * as Vant from 'react-vant'
// 组件可在标签添加 React.$vant.(要使用的组件名)使用 例如				<React.$vant.Button type="primary">按钮</React.$vant.Button>
React.$vant = Vant

const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
	/*
    18版本在开发阶段React故意让渲染两次
    <React.StrictMode>用于开启严格模式 将页面所有事件执行两次
  */
	// <React.StrictMode>
	<App />
	// </React.StrictMode>
)

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals()
